package aa;

import org.opencv.core.Mat;
import org.opencv.core.MatOfKeyPoint;
import org.opencv.features2d.Features2d;
import org.opencv.features2d.KeyPoint;
import org.opencv.highgui.Highgui;

import com.attilax.img.util.OpencvUtil;
import com.attilax.io.filexEx;

public class fastTest {
	
	public static void main(String[] args) {
		OpencvUtil.ini();
		String f = "D:\\0bar\\m.jpg";
		Mat src_mat = Highgui.imread(f);
		Mat out_mat = new Mat();

		
	//	FastFeatureDetector 
		MatOfKeyPoint keypoint_mat = new OpencvUtil().getFeaturePoints_Fast(src_mat);
		
		KeyPoint[] kps=keypoint_mat.toArray();

		Features2d.drawKeypoints(src_mat, keypoint_mat, out_mat);

		Highgui.imwrite(filexEx.addTimestampNSuffix(f, " fasted"), out_mat);
		System.out.println("--f");
	}

}
